
<!DOCTYPE html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
  <meta name="format-detection" content="telephone=no" />
  <link rel="icon" type="image/png" href="./favicon.png" />
  <title>获取中...</title>
  <style>
    html,
    body {
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    span {
      color: rgba(0, 0, 0, 0.65);
    }
  </style>
</head>

<body>
  <noscript>
    <strong>请开启浏览器的脚本支持！</strong>
  </noscript>
  <span>正在获取中...</span>
</body>

<script>
  var code = new URLSearchParams(window.location.search).get('code')
  window.parent.postMessage({ type: 'GETCODE', data: code }, '*')
</script>
